/*
 * @Author: Yxliam
 * @Date: 2023-12-12 11:44:53
 * @LastEditors: Yxliam
 * @LastEditTime: 2023-12-14 15:29:51
 * @Description: 
 */

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    ['@babel/plugin-proposal-decorators', {legacy: true}],
    [
      'module-resolver',
      {
        alias: {
          '@router': './src/router',
          '@components': './src/components',
          '@pages': './src/pages',
          '@utils': './src/utils',
          '@assets': './src/assets'
        },
      },
    ],
  ],
  env: {
    production: {
      plugins: ['transform-remove-console'],
    },
  },
};
